package com.open.dome.until;

import cn.hutool.crypto.SecureUtil;


public class SignUntil {





    /**
     * 生成sign
     * @param key
     * @param secret
     * @param param
     * @param timestamp
     * @return
     */
    public static String generateSign(String key, String secret, String param, Long timestamp) {
        if (param == null) {
            param = "";
        }
        String str = param + timestamp + key + secret;
        return SecureUtil.md5(str).toUpperCase();
    }
}
